<meta charset="utf-8">
<div data-page="contacts-list" class="page navbar-through no-toolbar contacts-list">
	<div class="navbar">
		<div class="navbar-inner">
			<div class="left">
				<a href="#" class="link back icon-only">
					<i class="ti-arrow-circle-left"></i>
				</a>
			</div>
			<div class="center">通迅录</div>
			<div class="right">
				<!-- <a href="form-select.html" class="link icon-only">＋</a> -->
			</div>
		</div>
	</div>

	<div class="page-content" id="div-contacts-list">
		<% contacts.forEach(function(dept){ %>
		<div class="content-block-title"><%=dept.name%></div>
		<div class="list-block">
			<ul>
				<% dept.userlist.forEach(function(user){ %>
				<li>
					<a href="<%=sails.config.application.appPrefix%>/contacts/detail?userid=<%=user.userid%>" class="item-link item-content" userid="<%=user.userid%>">
						<div class="item-media">
							<img src="<%=user.avatar%>64">
						</div>
						<div class="item-inner">
							<div class="item-title"><%=user.name%></div>
						</div>
					</a>
				</li>
				<% }) %>
			</ul>
		</div>
		<% }) %>
	</div>

</div>